import { defineStore } from "pinia";

export const useUserStore = defineStore( 'userStore', {
  state: () => {
    return {
      token: localStorage.token ? JSON.parse(localStorage.token) : ''
    }
  },
  getters: {

  },
  actions: {
    // saveToken ( state, payload ) {
    //   state.token = payload.token;
    //   localStorage.setItem('token', JSON.stringify(state.token))
    // }
  }
})